import { createRouter, createWebHistory } from 'vue-router'
// 导入页面组件
import Login from "@/views/Login/index.vue"
import BookList from "@/views/BookList/index.vue"


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/",
      redirect: "/login"
    },
    {
      path: "/login",
      component: Login,
    },
    {
      path: "/booklist",
      component: BookList
    }
  ],
})

export default router
